# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=adns
pkgver=1.6.0
pkgrel=1
pkgdesc="An asyncronous replacement resolver library"
arch=('loong64' 'x86_64')
url="https://www.chiark.greenend.org.uk/~ian/adns/"
license=('GPL')
depends=('glibc')
validpgpkeys=('559AE46C2D6B6D3265E7CBA1E3E3392348B50D39')
source=(https://www.chiark.greenend.org.uk/~ian/$pkgname/ftp/$pkgname-$pkgver.tar.gz{,.sig})
sha512sums=('d28d27123a2c9f873a60f9f1fd76ba60c795dc703ff52a6649f8f7ead12a5c74eb71b0a158168dfe9bb1eaf9b7d21f96ef303eb07fd9ad37fd73c38ed853d8de'
            'SKIP')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  mkdir -p "$pkgdir"/usr/{lib,include,bin}
  make prefix="$pkgdir"/usr install
}
